#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int  main() {
    int  a, b, m, n;
    m = n = 1;
    scanf("%d%d", &a, &b);
    do {
        if (a > 0) {
            m = 2 * n;
            b++;
        }
        else {
            n = m + n;
            a += 2;
            b++;
        }
    } while (a == b);
    printf("m=%dn=%d", m, n);
    return  0;
}